<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-1.11.0.min.js"></script>
 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<title>Insert title here</title>
		<script type="text/javascript" src="${pageContext.request.contextPath }/js/myflower.js"></script>
		<link href="${pageContext.request.contextPath }/css/myflower.css" rel="stylesheet" type="text/css" />
		
</head>

<script type="text/javascript">

	$(function(){
		
		
		if("${hasupload}" == "1"){
			alert("上架成功");
		}else if("${hasupload}" == "10"){
			alert("上架失败");
		}
		<% request.getSession().removeAttribute("hasupload");%>
	})
</script>

<body>

<div class = "main">

	<div class  ="top" style = "width:100%;height:60px;">
		<div class = "word" style = "">
			<span style =  "color:#f4c257">★</span>
			我的花店
		</div>
		
		<div class = ""></div>
		<div class = ""></div>
		<div class = ""></div>
	</div>
	
<!-- 	左边开始 -->
	<div class = "left">
			<div class = "userinfodiv" style = "">
				<div class = "headdiv" style = "width:30px;height:30px;border-radius:40px;margin-left: 340px;">
					<img alt="" src="${user.path }" style = "border-radius:40px;">
				</div>
				<div class = "username" style = "">
					&nbsp${user.userName }的花店
				</div>
			</div>
			<div class = "myflowerdiv">
				<div class = "myflowerinner">
					<c:forEach items="${myflower }" var="n">
						<div class = "one">
						<div class = "onepic">
							<img alt="" src="${n.path }" style = "">
						</div>
						<div class = "flowername" style = "color:green;margin-left: 20px;width:200px;margin-top:5px;">
							花名：${n.flowerName }
						</div>
						<div class = "price" style = "color:green;margin-left: 20px;width:200px;margin-top:5px;">
							价格：${n.flowerPrice }￥
						</div>
					</div>
					</c:forEach>
				</div>
			</div>
			
	</div>
<!-- 	左边结束 -->
	
<!-- 	右边开始 -->
	<div class = "right">
		<div class = "word1">
			<div class = "word2" style = "margin-left: 	60px;margin-top: 10px;border:0px;">
				<span style =  "color:#f4c257">★</span>
				上架商品
			</div>
		</div>
		<div class = "uploaddiv" style = "width:95%;height:500px;margin: 3px;">
			<form action="${pageContext.request.contextPath }/SendUploadFlowerServlet" method = "post" enctype="multipart/form-data">
				<div class = "filediv" style = "width:90%;margin: 10px;margin-top: 20px;">
					<input type = "file" name = "file">
				</div>
				<div class = "pricediv" style = "margin: 10px;">
					名称：<input type = "text" name = "flowerName" placeholder = "请输入名称">
				</div>
				<div class = "pricediv" style = "margin: 10px;">
					价格：<input type = "text" name = "flowerPrice" placeholder = "请输入价格">
				</div>
				<div class = "pricediv" style = "margin: 10px; ">
					商品介绍：
					<div style = "margin: 10px;">
						<textarea name = "flowerSay" rows="" cols="" placeholder = "请输入相关介绍" style = "width:200px;height:200px;"></textarea>
					</div>
				</div>
				<div class = "submitbutton" style = "margin-left: 70px;margin-top: 10px;">
					<input type =  "submit" class = "submit" value = "上架商品">
				</div>
				
			</form>
			
			<div class = ""></div>
			
		</div>
		
		
	</div>
<!-- 	右边结束 -->
	
	
</div>


</body>
</html>